home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / postscript.534 < prev    next >
Text File  |  1992-02-06  |  2KB  |  37 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Courier;\f1\fswiss Helvetica;}
  2. \paperw11440
  3. \paperh9000
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 postscript psrun relative paths\
  8. \
  9. Q: I'm using the PostScript 
  10. \i run
  11. \i0  operator.  I want to give it a relative path, for more flexibility in my application, but things only work when I use an absolute path.  Why?  How can I use a relative path?\
  12. \
  13.  
  14. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220 Q:  I'm receiving the following error message when I'm trying to use the PSrun() function in my application:\
  15.  
  16. \f2\fs24\fc0     %%[ Error: undefinedfilename; OffendingCommand: run ]%%\
  17.     DPS client library error: PostScript program error, DPSContext ba134\
  18.     \
  19.  
  20. \f0\fs28 Why won't PSrun work with the filename that I have provided?\
  21.  
  22. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  23. A: The 
  24. \i run
  25. \i0  operator can, indeed, be given a relative path.  Remember, though, that the path is relative to the 
  26. \i Window Server's
  27. \i0  current directory — which happens to be the root directory.  So, relative paths don't buy you very much.\
  28. \
  29. If you can turn your PS code into a wrap, you can obtain the appropriate directory from your C or Objective-C code, and pass that in as an argument to your PS code.  In this way, you can specify the appropriate directory programmatically, based on a value in the defaults database, on some notion of your current directory, on a user's home directory, on the application's location in the filesystem, ....\
  30. \
  31. QA534\
  32. \
  33. Valid for 1.0\
  34. Valid for 2.0\
  35. \
  36.  
  37.